import * as actionTypes from './actionTypes';

const initState = {
    detailsList:[]
}

export default (state=initState, action) => {
    if(action.type === actionTypes.GET_DATA) {
        return Object.assign({}, state, {detailsList:action.detailsList})
    }
    return state;
}